﻿using Coldairarrow.Entity.PB;
using System;
using System.Collections.Generic;
using System.Text;

namespace Coldairarrow.Entity.DTO
{
  public  class PieceDispatch
    {
        /// <summary>
        /// 员工名称集合
        /// </summary>
        public List<string> StaffNameList { get; set; }
        /// <summary>
        /// 员工id集合
        /// </summary>
        public List<string> StaffIdList { get; set; }
        /// <summary>
        /// 班别
        /// </summary>
        public string TeamType { get; set; }
        /// <summary>
        /// 派工日期
        /// </summary>
        public DateTime? DispatchDate { get; set; }
        /// <summary>
        /// 派工明细
        /// </summary>
        public List<PB_DispatchDetailList> SubData { get; set; }

        /// <summary>
        /// 是否成功
        /// </summary>
        public bool Success { get; set; } = true;

        /// <summary>
        /// 错误代码
        /// </summary>
        public int ErrorCode { get; set; }

        /// <summary>
        /// 返回消息
        /// </summary>
        public string Msg { get; set; }
        public PB_DispatchDTO Data { get; set; }

    }

    public class PB_CirculationBillInfo: PB_CirculationBill {
        /// <summary>
        /// 物料名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Spec { get; set; }
        /// <summary>
        /// 物料code
        /// </summary>
        public string Code { get; set; }
    }
    public class PB_DispatchDetailList: PB_DispatchDetail
    {
        /// <summary>
        /// 流转单id
        /// </summary>
        public string CirBillId { get; set; }
    }

    /// <summary>
    /// PDA上件部分派工
    /// </summary>
    public class PartialDispatch {

        /// <summary>
        /// 流转单id
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 统计数量
        /// </summary>
        public string StatisticalQuantity { get; set; }
        /// <summary>
        /// 物料id
        /// </summary>
        public string MaterialId { get; set; }
        /// <summary>
        /// 隶属成品
        /// </summary>
        public string SubordinateProduct { get; set; }
        /// <summary>
        /// 已报工数量
        /// </summary>
        public string WorkReportQuantity { get; set; }
        /// <summary>
        /// 任务单id
        /// </summary>
        public string TaskId { get; set; }
        /// <summary>
        /// 任务单明细
        /// </summary>
        public string TaskDetailId { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterName { get; set; }
        /// <summary>
        /// 物料规格
        /// </summary>
        public string MaterSpec { get; set; }
        /// <summary>
        /// 已派工数量
        /// </summary>
        public string DispatchedNums { get; set; }
        /// <summary>
        /// 接收数量
        /// </summary>
        public string ReceivingQuantity { get; set; }
        /// <summary>
        /// 接收人
        /// </summary>
        public string Receiver { get; set; }
        /// <summary>
        /// json备注
        /// </summary>
        public string Reamrk { get; set; }
    }

}
